package com.example.springboot01.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description : 类描述
 * Created by cyd on 2021-03-24 01:14:52
 */
@Data
@PropertySource(value = {"classpath:config/person.properties"})
@Component
@ConfigurationProperties(prefix = "person4")
public class Person4 {
    private String name;
    private Integer age;
    private Boolean boss;
    private Date birthday;

    private Map<String, Object> map;
    private List<Object> list;
    private Dog dog;
}
